﻿using System;
using System.Collections.Generic;
using System.Text;
using YouHP.Utility;
using YouHP.BLL;
using System.Web;
using YouHP.Model;

namespace YouHP.Pages.Profile
{
    public class ActionList : YouHP.Pages.Profile.ProfileBasePage
    {
        public override void InitPage()
        {
            base.InitPage();
            PageKey = PageKeys.Profile_ActionList;
        }

        protected override void ShowPage()
        {
            base.ShowPage();
            if (ErrorCount > 0) return;

            HandleCommon();
            if (ErrorCount > 0) return;
            if (IsPost) HandlePost();
            else
                HandleGet();
        }

        protected void HandlePost()
        {
           

        }

        protected List<UserInfo> FriendList;
        protected int FriendCount;
        protected void HandleCommon()
        {
            this.AddLocation("互动", "");
            this.SetTitle("互动");
            this.AddScriptSrc("/support/Alpha/Js/mootools.js");
            FriendList = FriendBLL.Instance.GetFriendList(10000000, 1, ProfileData.Id, Constants.FriendPass, out FriendCount);

            if (UserData.Id == ProfileData.Id)
            {
                //如果是本人登录此页面，将表情设置为已读
                ActionBLL.Instance.UpdateActionState(ProfileData.Id, 1);
            }
        }


        protected void HandleGet()
        {


        }
    }
}
